import request from "@/utils/request";

//获得所有food
export function getAllFood(params){
    return request({
        url:'/food',
        params
    })
}

export function addFood(data){
    return request({
        url:'/food',
        method:'post',
        data
    })
}

export function updateFood(params){
    return request({
        url:'/food',
        method:'put',
        params
    })
}
// 获得上架的food
export function getPassFood(params){
    return request({
        url:'/food/get-pass-food',
        params
    })
}